// Copyright (C) 2012 by Johann Duscher <jonny.dee@gmx.net>
//
// This file is part of barcodeart-pp.
//
// barcodeart-pp is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// barcodeart-pp is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with barcodeart-pp. If not, see <http://www.gnu.org/licenses/>.

#include "barcodeart/svgwriter/SVGWriterPlugin.hpp"

#include "barcodeart/svgwriter/SVGWriter.hpp"
#include "barcodeart/svgwriter/SVGWriterConfig.hpp"


Q_EXPORT_PLUGIN2(svgwriter, barcodeart::svgwriter::SVGWriterPlugin)

namespace barcodeart
{

namespace svgwriter
{

SVGWriterPlugin::SVGWriterPlugin()
{
}

const char* SVGWriterPlugin::getName() const
{
    return "svgwriter";
}

const char* SVGWriterPlugin::getDesciption() const
{
    return "Outputs barcodes as SVG.";
}

IWriter::Ptr SVGWriterPlugin::createWriter() const
{
    return IWriter::Ptr(new SVGWriter);
}

IWriterConfig::Ptr SVGWriterPlugin::createConfig() const
{
    return IWriterConfig::Ptr(new SVGWriterConfig);
}

IWriterConfigView::Ptr SVGWriterPlugin::createConfigView() const
{
    return IWriterConfigView::Ptr();
}

}

}
